﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace CrossingSwords
{
    class Card
    {
        Texture2D image, back;
        public Vector2 position;
        String name, description;
        int type; //0: attack, 1:defense, 2:action
        int target; //0: self, 1: other, 2: all
        int attack, defense;
        bool piercing;

        public Card(Texture2D img, Texture2D back, Vector2 pos,String name, String description, int type, int target, int atk, int def, bool piercing)
        {
            image = img;
            this.back = back;
            position = pos;
            this.name = name;
            this.description = description;
            this.type = type;
            this.target = target;
            attack = atk;
            defense = def;
            this.piercing = piercing;
        }

        public void Draw(SpriteBatch render, bool revealCard)
        {
            if (revealCard)
                render.Draw(image, position, Color.White);
            else
                render.Draw(back, position, Color.White);
        }
    }
}
